<?php

namespace Modules\Admin\Http\Controllers\SmsVerify;

use Modules\Common\Models\RateTag;
use Modules\Common\Models\SmsVerify;
use Modules\Common\Util\Api;


class Retrieve 
{


    /**
     *@Route(path=/api/admin/sms-verify)
    */
    public function retrieve()
    {
        $query = SmsVerify::latest();

        if (request('mobile'))
        {
            $query->where('mobile', 'like', '%' . request('mobile') . '%');
        }

        return Api::success($query->paginate(request('per_page', 15)));
    }


}
